home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 2: CDPD 1
/
Almathera Ten on Ten - Disc 2: CDPD 1.iso
/
pd
/
201-225
/
214
/
arcprep
/
arcprep.doc
< prev
next >
Wrap
Text File
|
1995-03-13
|
5KB
|
121 lines
A R C - P R E P A R E
(C) Nov. 25th 1988 14:45 CET/MEZ by Garry Glendown
This program is placed in the public domain, no fee may be charged except
for media and copying. Distribution is only permitted via electronic
mail and similar and by Fred Fish's PD Disks. No other PD series may include
ArcPrep on one of their disks.
You may make any changes to ArcPrep, but I would really appreciate it if
you could send me the new sources (except conversion to Lattice-C or
Modula-II) or at least a short note about what you did...
"Spread me, I want to travel! But please keep all my parts together!!!"
ArcPrep will prepare any files and/or directories for usage with 'Arc', 'Zoo'
or any other program that can't scan through different directories and/or
handle long filenames.
To use, just type:
ArcPrep <StartPath> [-inventory]
where <StartPath> is the path, from which ArcPrep will start to find *ALL*
files. It will then create two script-files, 'PREP_FILES' to rename the
files before usage of Arc, and 'EXECUTE_ME' to get the old names and
directory-structure back. Adding a '-i' as second parameter will create an
inventory (named 'INVENTORY' in the same directory) which will show all the
files included in the archive with the original filename and -path and their
new name (Arc-xxxxx)
How to use...
The line:
ArcPrep dh0:devs
will find all files in the devs-drawer and create the coresponding script-
files. The file 'PREP_FILES' might then look like this:
Rename mountlist Arc-00000
Rename sddevice Arc-00001
Rename system-configuration Arc-00002
Rename clipboards/0 Arc-00003
delete dh0:devs/clipboards
:
:
Rename jd_dev.device Arc-00013
Rename load.device Arc-00014
Rename narrator.device Arc-00015
Rename parallel.device Arc-00016
Rename printer.device Arc-00017
Rename ramdrive.device Arc-00018
and the 'EXECUTE_ME'-file will look like this:
Rename Arc-00000 mountlist
Rename Arc-00001 sddevice
Rename Arc-00002 system-configuration
makedir clipboards
Rename Arc-00003 clipboards/0
:
:
Rename Arc-00013 jd_dev.device
Rename Arc-00014 load.device
Rename Arc-00015 narrator.device
Rename Arc-00016 parallel.device
Rename Arc-00017 printer.device
Rename Arc-00018 ramdrive.device
These files will be found in the DH0:devs - directory.
The next step is executing the 'PREP_FILES'-script, so type:
cd dh0:devs
execute prep_files
After a shorter or longer period the prompt should appear. You can now use
Arc without any problems. Just type:
arc -m dev
and voila, the whole devs-directory is only 1 file...
Wasn't that easy ?
BUGS:
I'd be happy if I could repeat what Leo had in one of his programs,
('There are NO bugs in my program'). I have to refer to the second
part of his 'speech': 'However, there may be any number of
undesireable features'.
While writing the first version of this program (with automatic
rename&delete), I've had some occasional crashes, usually because of
insufficient stack. I didn't notice them today (while correcting
the program), but as they didn't appear like I wanted them to with
the old version, I'm not quiete sure if the bug's out. So you
better use a stack of about 20000 or so. I've tried it with a
directory of about 90 files and about 4 levels of nested dirs,
which worked fine. If you should get a guru, just increase the
stack by another 20K or so, that should get it to work earlier or
later (60000 worked with a subdir of 550 files on my harddisk).
If you really like this program and think it's useful, just send me
anything to show me your appreciation. I'll take anything (well, almost),
if it's $5, $10, $50 or a car, a boat, an airplane, Fort Knox, just send it
to me. (If it's one of the latter, I'll pay the postage...)
Garry Glendown
Gueldene Kammer 35
6430 Bad Hersfeld
West Germany
Tel.: 06621-73483
or, for any written thanks:
Garry @ DGIHRZ01 . BITNET